<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />
    <title>{% block title %} {{ blog.title}}{% endblock %}</title>
    <link rel="stylesheet" href="/themes/{{ blog.theme_name }}/style_new.css" type="text/css" media="screen" />    
    <link rel="alternate" type="application/rss+xml" title="{{ blog.title }} RSS Feed" href="{{ blog.feedurl }}" />
    <link href="/static/wlwmanifest.xml" type="application/wlwmanifest+xml" rel="wlwmanifest" />
    <script type="text/javascript" src="/themes/{{ blog.theme_name }}/rounded_corners_lite.inc.js"></script>
    <script type="text/javascript" src="/static/js/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
    {% block head_block %}{% endblock %}
</head>
<body>
    <div id="container">
        <div id="header">
            <div id="menu">
                <ul>
                    <li><a  href="{{ blog.baseurl }}">首页</a></li>
                    {%if self.is_admin%}
                        <li><a href="/admin/post">写文章</a> </li>
                        <li><a href="/admin/comments">查看评论</a></li>
                        <li><a href="/admin">后台管理</a> </li>
                    {%endif%}		        
                    <li>
                        {%if self.is_login%}
                        <a href="{{self.logouturl}}">退出</a>
                        {%else%}
                        <a href="/admin">登录</a>
                        {%endif%}
                    </li>
                    <li id="searchbox">
                        <form method="get" id="searchform" action="http://www.google.com/search">
                            <input type="text" value="Search..." onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" name="as_q" id="s" />
                            <input type="image" src="/themes/{{ blog.theme_name }}/images/transparent.gif" id="go" alt="Search" title="Search" />
                            <input name="as_sitesearch" value="{{blog.domain}}" type="hidden">
                        </form>
                    </li>
                </ul>
            </div>
            <div id="hcontents">
                <div class="h1"><a href="{{blog.baseurl}}/" id="headerlink" name="headerlink">{{ blog.title }}</a></div>
                <div class="h2">{{ blog.subtitle }}</div>
            </div>
        </div>
        <div id="content">
            <div id="inner">
                {%block content %}{%endblock%}
            </div>
        </div>
     
      
      <div id="sidebar">
        <div id="sidelinks">
          <div id="myself"> {{ blog.selfintro }} </div>
          <ul>
            <li>
              <h3>研究动态</h3>
              <div align="left">
                {%if issue%}{{issue.issue}}{%else%}走神中...{%endif%}
              </div>
            </li>        
            <li>
              <h3>文章分类</h3>
              <ul>
                {% for cate in categories %}
                <li><a href="/category/{{cate.slug}}">{{cate.name}}({{cate.count}})</a></li>
                {% endfor %}        
              </ul>
            </li>
            <li>
              <h3>文章存档</h3>
              <ul>
                {%for archive in archives%}
                <li><a href="#">{{archive.monthyear}}({{archive.entrycount}})</a></li>
                {%endfor%}
              </ul>
            </li>
            <li>
              <h3>友情链接</h3>
              <ul>
              {%for link in blogroll%}
                <li><a href="{{link.href}}" target="_blank">{{link.linktext}}</a></li>
              {%endfor%}
              </ul>
            </li>
          </ul>
        </div>
      </div>
      
      
      <div id="footer">
        <div id="fcontent">
            {{blog.title}} is proudly powered by <a href="http://xuming.net">Micolog</a>. Theme by <a href="http://me.mywebsight.ws/" title="LobsterMan">LobsterMan</a>          
        </div>
      </div>
   

    </div>
  </body>
</html>
